package io.vertx.example.feignService;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import com.dc.dcit.common.vo.UserVO;

import io.vertx.example.hystrixFallback.FeignServiceFallback;

@FeignClient(value = "DCIT-SERVICE-UPMS",fallback = FeignServiceFallback.class)
public interface UserFeignService {
    
    @GetMapping("/user/findUserByUsername/{username}")
    UserVO findUserByUsername(@PathVariable("username") String username);
}
